]> dgit.raspbian.org Git - ostree.git/commitdiff
ci: Use dnf instead of rpm to install built RPMs in container
authorJoseph Marrero Corchado <jmarrero@redhat.com>
Wed, 24 Jun 2026 14:59:39 +0000 (10:59 -0400)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Wed, 24 Jun 2026 15:00:28 +0000 (11:00 -0400)
This allows dependency resolution to handle soname changes (e.g. gpgme
1.x to 2.x) instead of silently installing mismatched libraries.

Dockerfile

index 43edd19451860be9d4bd42ed94d1361bedc393c3..b107cd21efd82d4b09662dbcf36e3839de7702b2 100644 (file)
@@ -77,7 +77,7 @@ RUN --network=none \
 FROM $base as rootfs
 COPY --from=rpmbuild /rpms/*.rpm /tmp/rpms/
 RUN ls /tmp/rpms/ && \
-    rpm -Uvh --oldpackage $(ls /tmp/rpms/ostree-*.rpm | grep -v -e devel -e debug) && \
+    dnf -y install --allowerasing $(ls /tmp/rpms/ostree-*.rpm | grep -v -e devel -e debug) && \
     rm -rf /tmp/rpms
 
 # The default final container, with also a regenerated